<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>  
    *
    {
        margin: 0;
        padding: 0;
    }
     li{
            float: left;
            padding: 20px;
        }
        
        .nav{
            float: left;
        }
     
        .user{
            float: right;
        }
    </style>
</head>
<body>
    <div class="head">
        <div class="nav">
            <ul>
                <li>新闻</li>
                <li>hao123</li>
                <li>地图</li>
                <li>贴吧</li>
                <li>图片</li>
            </ul>
        </div>
        <div class="user">登录</div>
    </div>

    <div class="main">
        主题内容
    </div>

</body>
</html>